package com.accountbook.diy;

import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class AccountBookImageButtom extends LinearLayout {
	
	private ImageView mImage;
	private TextView mText;

	public AccountBookImageButtom(Context context, AttributeSet attrs) {
		super(context, attrs);
		mImage = new ImageView(context, attrs);
	    mImage.setPadding(0,0,0,0);
	    mText = new TextView(context, attrs);
	    //mText.setGravity(android.view.Gravity.CENTER_VERTICAL);
	    mText.setPadding(0,0,0,0);
	    
	    setClickable(true);
	    setFocusable(true);
	    setBackgroundColor(Color.TRANSPARENT);
	    setOrientation(LinearLayout.VERTICAL);
	    addView(mImage);
	    addView(mText);
	}
}
